package liuwanghui.mapper;

import liuwanghui.dto.request.SaleOrderQueryDTO;
import liuwanghui.pojo.SaleOrder;
import liuwanghui.pojo.SaleOrderStatusLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface SaleOrderMapper {
    List<SaleOrder> findOrdersBySearch(SaleOrderQueryDTO params);
    SaleOrder findOrderById(@Param("id") Long id);
    void insertOrder(SaleOrder order);
    void updateOrderStatus(SaleOrder order);
    void updateOrderReview(SaleOrder order);
    
    // 添加状态日志相关方法
    void insertStatusLog(SaleOrderStatusLog log);
    List<SaleOrderStatusLog> findStatusHistory(@Param("orderId") Long orderId);
} 